import { Menu } from '../components/layout/SideNav';

export const apiData: Menu[] = [
  {
    title: 'GET STARTED',
    expanded: true,
    links: [
      {
        href: '/docs/api/01_start/01_overview_en',
        children: 'Overview',
        expanded: false,
      },
    ],
  },
  {
    title: 'PAYMENT',
    expanded: true,
    links: [
      {
        children: 'Server Driven',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/01_server/01_payment_en',
            children: 'Overview',
          },
          {
            href: '/docs/api/02_payment/01_server/02_object_en',
            children: 'Payment object',
          },
          {
            href: '/docs/api/02_payment/01_server/03_example_en',
            children: 'Start a payment',
          },
          {
            href: '/docs/api/02_payment/01_server/04_resultCode_en',
            children: 'Result Code',
          },
        ],
      },
      {
        children: 'QR Code',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/02_qrcode/01_overview_en',
            children: 'Overview',
          },
          {
            href: '/docs/api/02_payment/02_qrcode/02_display_en',
            children: 'Display a QR code on device',
          },
          {
            href: '/docs/api/02_payment/02_qrcode/03_close_en',
            children: 'Close the QR code on device',
          },
        ],
      },
      {
        children: 'Soundbox',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/03_soundbox/01_overview_en',
            children: 'Overview',
          },
          {
            href: '/docs/api/02_payment/03_soundbox/02_playVoice_en',
            children: 'Play a voice on soundbox',
          },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/03_getResult_en',
          //   children: 'Get the command result',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/04_listPackage_en',
          //   children: 'List corpus package',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/05_listCorpusFile_en',
          //   children: 'List corpus file of a package',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/06_getDetail_en',
          //   children: 'Get the corpus package detail',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/07_uploadFile_en',
          //   children: 'Upload sound file',
          // },
        ],
      },
      {
        children: 'Cloud Printer',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/04_cloud/01_overview_en',
            children: 'Overview',
          },
          {
            href: '/docs/api/02_payment/04_cloud/02_push_en',
            children: 'Push a printing message',
          },
        ],
      },
      {
        children: 'Get the command result',
        expanded: true,
        href: '/docs/api/02_payment/05_getResult_en',
      },
      {
        children: 'Receive the success result via CallbackUrl',
        expanded: true,
        href: '/docs/api/02_payment/06_receiveCallbackurl_en',
      },
    ],
  },
];

export const docsData: Menu[] = [
  {
    title: 'OVERVIEW',
    expanded: true,
    links: [
      {
        href: '/docs/payments/01_overview/01_overview_en',
        children: 'Overview',
        expanded: true,
      },
      {
        href: '/docs/payments/01_overview/02_introduce_en',
        children: 'How payment terminal works',
        expanded: true,
      },
    ],
  },
  //Payment framework - BEDC
  {
    title: 'BEDC PAYMENT',
    expanded: true,
    links: [
      {
        href: '/docs/payments/02_bedc/01_overview_en',
        children: 'Overview',
        expanded: true,
      },
    ],
  },
  //TOMS-MIS
  {
    title: 'Server-Driven Integration',
    expanded: true,
    links: [
      {
        href: '/docs/payments/03_cloud_mis/01_overview_en',
        children: 'Overview',
        expanded: true,
      },
    ],
  },
  //Retail SDK
  {
    title: 'SDK-based Integration',
    expanded: true,
    links: [
      {
        href: '/docs/payments/04_retail_sdk/01_overview_en',
        children: 'Retail SDK overview',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/02_reader_en',
        children: 'Select your reader',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/03_quickstart_en',
        children: 'QuickStart',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/04_example_en',
        children: 'Example application',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/05_connect_en',
        children: 'Connect to terminal',
        expanded: true,
      },
      {
        children: 'Financial Services',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/06_financial/01_sale_en',
            children: 'Collect card payments',
          },
          {
            href: '/docs/payments/04_retail_sdk/06_financial/02_refund_en',
            children: 'Refund transactions',
          },
          {
            href: '/docs/payments/04_retail_sdk/06_financial/03_more_en',
            children: 'More features',
          },
        ],
      },
      {
        children: 'Management Services',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/07_management/01_inquiry_en',
            children: 'Transaction result inquiry',
          },
          {
            href: '/docs/payments/04_retail_sdk/07_management/02_param_en',
            children: 'Parameter management',
          },
        ],
      },
      {
        children: 'Devices Services',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/08_devices/01_printer_en',
            children: 'Printer service',
          },
        ],
      },
      {
        children: 'System Services',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/09_system/01_abort_en',
            children: 'Abort transaction',
          },
          {
            href: '/docs/payments/04_retail_sdk/09_system/02_event_en',
            children: 'Event notification',
          },
        ],
      },
      {
        href: '/docs/payments/04_retail_sdk/10_exception_en',
        children: 'Exception Handling',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/11_testing_en',
        children: 'Testing',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/12_checklist_en',
        children: 'Deployment checklist',
        expanded: true,
      },
    ],
  },
  //UPIP
  {
    title: 'Unattended Self-service Terminals',
    expanded: true,
    links: [
      {
        href: '/docs/payments/05_upip/01_overview_en',
        children: 'UPIP overview',
        expanded: true,
      },
    ],
    //continue
  },
];

export const smartLinkData: Menu[] = [
  {
    title: 'Overview',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/01_overview/01_overview_en',
        children: 'Overview',
        expanded: false,
      },
    ],
  },
  {
    title: 'Quick Start',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/02_quick_start/01_install_app_en',
        children: 'Install the app',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/02_config_en',
        children: 'Configuration parameters',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/03_add_device_en',
        children: 'Search and add devices',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/04_pay_en',
        children: 'Experience Payment',
        expanded: true,
      },
    ],
  },
  {
    title: 'Supported Services',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/03_services/01_pay_en',
        children: 'Payment Services',
        expanded: true,
      },
      {
        href: '/docs/smart-link/03_services/02_print_en',
        children: 'Print Service',
        expanded: true,
      },
      {
        href: '/docs/smart-link/03_services/03_camera_en',
        children: 'Camera Service',
        expanded: true,
      },
      {
        href: '/docs/smart-link/03_services/04_screen_en',
        children: 'Screen Service',
        expanded: true,
      }
    ],
  },
  {
    title: 'Registering and using your custom service',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/04_config_service/01_register_en',
        children: 'Service Registration and Subscription',
        expanded: false,
      },
      {
        href: '/docs/smart-link/04_config_service/02_call_en',
        children: 'Service Call',
        expanded: false,
      },
    ],
  },
];

export const apiData_zh: Menu[] = [
  {
    title: '开始',
    expanded: true,
    links: [
      {
        href: '/docs/api/01_start/01_overview_zh',
        children: '概览',
        expanded: false,
      },
    ],
  },
  {
    title: '付款',
    expanded: true,
    links: [
      {
        children: '服务器驱动',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/01_server/01_payment_zh',
            children: '概览',
          },
          {
            href: '/docs/api/02_payment/01_server/02_object_zh',
            children: '付款对象',
          },
          {
            href: '/docs/api/02_payment/01_server/03_example_zh',
            children: '开始支付',
          },
          {
            href: '/docs/api/02_payment/01_server/04_resultCode_zh',
            children: '结果码',
          },
        ],
      },
      {
        children: '二维码',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/02_qrcode/01_overview_zh',
            children: '概览',
          },
          {
            href: '/docs/api/02_payment/02_qrcode/02_display_zh',
            children: '在设备上使用二维码',
          },
          {
            href: '/docs/api/02_payment/02_qrcode/03_close_zh',
            children: '在设备上关闭二维码',
          },
        ],
      },
      {
        children: '云音响',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/03_soundbox/01_overview_zh',
            children: '概览',
          },
          {
            href: '/docs/api/02_payment/03_soundbox/02_playVoice_zh',
            children: '开启云音响',
          },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/03_getResult_zh',
          //   children: 'Get the command result',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/04_listPackage_zh',
          //   children: 'List corpus package',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/05_listCorpusFile_zh',
          //   children: 'List corpus file of a package',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/06_getDetail_zh',
          //   children: 'Get the corpus package detail',
          // },
          // {
          //   href: '/docs/api/02_payment/03_soundbox/07_uploadFile_zh',
          //   children: 'Upload sound file',
          // },
        ],
      },
      {
        children: '云打印',
        expanded: true,
        subLinks: [
          {
            href: '/docs/api/02_payment/04_cloud/01_overview_zh',
            children: '概览',
          },
          {
            href: '/docs/api/02_payment/04_cloud/02_push_zh',
            children: '推送打印信息',
          },
        ],
      },
      {
        children: '获取指令结果',
        expanded: true,
        href: '/docs/api/02_payment/05_getResult_zh',
      },
      {
        children: '通过回调获取成功结果',
        expanded: true,
        href: '/docs/api/02_payment/06_receiveCallbackurl_zh',
      },
    ],
  },
];

export const docsData_zh: Menu[] = [
  {
    title: 'OVERVIEW',
    expanded: true,
    links: [
      {
        href: '/docs/payments/01_overview/01_overview_zh',
        children: '概述',
        expanded: true,
      },
      {
        href: '/docs/payments/01_overview/02_introduce_zh',
        children: '接受线下付款',
        expanded: true,
      },
    ],
  },
  //Payment framework - BEDC
  {
    title: 'BEDC收单方案',
    expanded: true,
    links: [
      {
        href: '/docs/payments/02_bedc/01_overview_zh',
        children: '概述',
        expanded: true,
      },
    ],
  },
  //TOMS-MIS
  {
    title: 'MIS云集成',
    expanded: true,
    links: [
      {
        href: '/docs/payments/03_cloud_mis/01_overview_zh',
        children: '概述',
        expanded: true,
      },
    ],
  },
  //Retail SDK
  {
    title: 'Retail SDK集成',
    expanded: true,
    links: [
      {
        href: '/docs/payments/04_retail_sdk/01_overview_zh',
        children: 'Retail SDK方案概述',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/02_reader_zh',
        children: '选择您的支付硬件',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/03_quickstart_zh',
        children: '快速开始',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/04_example_zh',
        children: '示例应用',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/05_connect_zh',
        children: '连接终端',
        expanded: true,
      },
      {
        children: '金融服务',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/06_financial/01_sale_zh',
            children: '银行卡消费',
          },
          {
            href: '/docs/payments/04_retail_sdk/06_financial/02_refund_zh',
            children: '银行卡退款',
          },
          {
            href: '/docs/payments/04_retail_sdk/06_financial/03_more_zh',
            children: '更多金融场景',
          },
        ],
      },
      {
        children: '管理服务',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/07_management/01_inquiry_zh',
            children: '交易结果查询',
          },
          {
            href: '/docs/payments/04_retail_sdk/07_management/02_param_zh',
            children: '支付参数管理',
          },
        ],
      },
      {
        children: '设备服务',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/08_devices/01_printer_zh',
            children: '打印凭条',
          },
        ],
      },
      {
        children: '系统服务',
        expanded: true,
        subLinks: [
          {
            href: '/docs/payments/04_retail_sdk/09_system/01_abort_zh',
            children: '中止交易',
          },
          {
            href: '/docs/payments/04_retail_sdk/09_system/02_event_zh',
            children: '事件通知',
          },
        ],
      },
      {
        href: '/docs/payments/04_retail_sdk/10_exception_zh',
        children: '异常处理',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/11_testing_zh',
        children: '测试集成',
        expanded: true,
      },
      {
        href: '/docs/payments/04_retail_sdk/12_checklist_zh',
        children: '部署检查表',
        expanded: true,
      },
    ],
  },
  //UPIP
  {
    title: 'Unattended Self-service Terminals',
    expanded: true,
    links: [
      {
        href: '/docs/payments/04_retail_sdk/01_overview_zh',
        children: 'UPIP自助解决方案',
        expanded: true,
      },
    ],
    //continue
  },
];

export const smartLinkData_zh: Menu[] = [
  {
    title: '概览',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/01_overview/01_overview_zh',
        children: '概览',
        expanded: false,
      },
    ],
  },
  {
    title: '快速体验',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/02_quick_start/01_install_app_zh',
        children: '安装应用',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/02_config_zh',
        children: '配置参数',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/03_add_device_zh',
        children: '搜索并添加设备',
        expanded: true,
      },
      {
        href: '/docs/smart-link/02_quick_start/04_pay_zh',
        children: '体验支付',
        expanded: true,
      },
    ],
  },
  {
    title: '已支持的服务',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/03_services/01_pay_zh',
        children: '支付服务',
        expanded: true,
      },
      {
        href: '/docs/smart-link/03_services/02_print_zh',
        children: '打印服务',
        expanded: true,
      },
      {
        href: '/docs/smart-link/03_services/03_camera_zh',
        children: '摄像头服务',
        expanded: true,
      },
      ,
      {
        href: '/docs/smart-link/03_services/04_screen_zh',
        children: '副屏服务',
        expanded: true,
      }
    ],
  },
  {
    title: '注册和使用你的自定义服务',
    expanded: true,
    links: [
      {
        href: '/docs/smart-link/04_config_service/01_register_zh',
        children: '服务注册和订阅',
        expanded: false,
      },
      {
        href: '/docs/smart-link/04_config_service/02_call_zh',
        children: '服务调用',
        expanded: false,
      },
    ],
  },
];
